<%-- 
    Document   : dashboard
    Author     : jossemargt
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@include file="/partial/header-dashboard.jspf" %>

<%-- Le code --%>
<div id="dashboar-home" class="app-section container active">
    <section>
        <h2>Dashboard</h2>

        <p>Welcome to the privileged area. Choose the option in the menu bar.</p>
        

    </section>
</div>

<div id="manage-users" class="app-section container">
    <section>
        <h2>Administrar usuarios</h2>

        <form class="input-form-string" action="UserServlet" data-ajax-action="UserServlet" method="post"> 
            <fieldset>

                <legend>ABC Usuarios</legend>
                <label for="user-name"> Usuario:</label>
                <input type="text" required id="user-name" placeholder="Ingrese su usuario." name="user-name" />
                <label for="user-pass">Contraseña:</label>
                <input type="password" required id="user-pass" placeholder="Ingrese su contraseña." name="user-pass" />
                <label for="user-abc-option"> Option:</label>
                <select name="user-abc-option" id="user-abc-option">
                    <option value="user-new">nuevo</option>
                    <option value="user-modify">modificar</option>
                    <option value="user-delete">borrar</option>
                </select>

                <br />
                <input type="submit" class="btn" value="Enviar" />
            </fieldset>
        </form>

        <div class="response-box">

        </div>

    </section>
</div>

<div id="post-new" class="app-section container">
    <section>
        <h2>Add new post</h2>

        <form class="input-form-upload" action="PostManagerServlet" method="post"> 
            <fieldset>
                <input type="hidden" name="parser-action-type" value="post-new" />
                
                <label for="post-new-title">Title</label>                
                <input name="post-new-title" id="post-new-title" type="text" class="span12" placeholder="The title" />
                
                <label for="post-new-content" >Content</label>
                <textarea name="post-new-content" id="post-new-content" class="span12"  placeholder="Lorem ipsum doloren?" ></textarea>
                
                <label for="post-new-tags" >Tags</label>
                <textarea name="post-new-tags" id="post-new-tags" placeholder="Define tags separated by commas"  class="span12" ></textarea>

                <input type="submit" class="btn" value="Publish" />
            </fieldset>
        </form>

        <div class="response-box">

        </div>

    </section>
</div>

<%@include file="/partial/footer-dashboard.jspf" %>
